import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/all/oemprofit/pos_profit/list',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}
export const getListCount = (params) => {
  return request({
    url: '/api/rb-service/service/all/oemprofit/pos_profit/statistics',
    method: 'get',
    params: {
      ...params
    }
  })
}

/* 服务商分润明细 导出 */
export const getExport = (params) => {
  return request({
    // headers: {
    //   "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    // },
    // responseType: 'blob',
    url: '/api/rb-service/service/all/oemprofit/pos_profit/export',
    method: 'get',
    params: {
      ...params
    }
  })
}

/* 服务商分润明细 详情 */
export const getInfoDetails = (param) => {
  return request({
    url: '/api/rb-service/service/all/oemprofit/pos_profit/info',
    method: 'get',
    params: {...param}
  })
}